home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.n
/
lsearch.n
< prev
next >
Wrap
Text File
|
1995-07-25
|
3KB
|
67 lines
llllsssseeeeaaaarrrrcccchhhh((((nnnn)))) TTTTccccllll ((((7777....0000)))) llllsssseeeeaaaarrrrcccchhhh((((nnnn))))
_________________________________________________________________
NNNNAAAAMMMMEEEE
lsearch - See if a list contains a particular element
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
llllsssseeeeaaaarrrrcccchhhh ?_m_o_d_e? _l_i_s_t _p_a_t_t_e_r_n
_________________________________________________________________
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
This command searches the elements of _l_i_s_t to see if one of
them matches _p_a_t_t_e_r_n. If so, the command returns the index
of the first matching element. If not, the command returns
----1111. The _m_o_d_e argument indicates how the elements of the |
list are to be matched against _p_a_t_t_e_r_n and it must have one |
of the following values: |
----eeeexxxxaaaacccctttt ||
The list element must contain exactly the same string |
as _p_a_t_t_e_r_n. |
----gggglllloooobbbb ||
_P_a_t_t_e_r_n is a glob-style pattern which is matched |
against each list element using the same rules as the |
ssssttttrrrriiiinnnngggg mmmmaaaattttcccchhhh command. |
----rrrreeeeggggeeeexxxxpppp ||
_P_a_t_t_e_r_n is treated as a regular expression and matched |
against each list element using the same rules as the |
rrrreeeeggggeeeexxxxpppp command. |
If _m_o_d_e is omitted then it defaults to ----gggglllloooobbbb.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
list, match, pattern, regular expression, search, string
Page 1 (printed 7/17/95)